class B
{
    public B() {
        func();
    }
    public void func()
    {
        System.out.println("B func()");
    }
}
class D extends  B
{
    @Override
    public void func() {
        System.out.println("D func()");
    }
}
public class Test3 {
    public static void main(String[] args) {
        D d =new D();
    }
}
